<?php defined('IN_IA') or exit('Access Denied');?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>

<div class="panel panel-success">
  		<div class="panel-heading">主站信息设置</div>
	</div>
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
		
			<div class="panel-body">
		
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">主站标题</label>
				<div class="col-sm-8">
					<input type="text" name="title" class="form-control" value="<?php  echo $info['title'];?>" />
					<span class="help-block"></span>
				</div>
			</div>	
				
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">收到答案的关键词</label>
				<div class="col-sm-8">
					<input type="text" name="copyright" class="form-control" value="<?php  echo $info['copyright'];?>" /> 
					<span class="help-block" style="color:red">回复收到答案的关键词</span>
				</div>
			</div>
			
			
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">0分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope11" class="form-control span7" placeholder="" name="score_scope11" value="<?php  echo $info['score_scope11'];?>">
		        </div>
		        <span class="help-block" style="color:red">例如：XXX出题，我得了分，天天玩手机仍然答不好</span>
		        
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope12" class="form-control span7" placeholder="" name="score_scope12" value="<?php  echo $info['score_scope12'];?>">
		        </div>
		        <span class="help-block" style="color:red">这套题。你来试试？（中间空出分数，自动生成）</span>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise1" class="form-control span7" placeholder="" name="praise1" value="<?php  echo $info['praise1'];?>">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">10~30分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope21" class="form-control span7" placeholder="" name="score_scope21" value="<?php  echo $info['score_scope21'];?>">
		        </div>
		        
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope22" class="form-control span7" placeholder="" name="score_scope22" value="<?php  echo $info['score_scope22'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise2" class="form-control span7" placeholder="" name="praise2" value="<?php  echo $info['praise2'];?>">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">40~60分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope31" class="form-control span7" placeholder="" name="score_scope31" value="<?php  echo $info['score_scope31'];?>">
		        </div>
		        
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope32" class="form-control span7" placeholder="" name="score_scope32" value="<?php  echo $info['score_scope32'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise3" class="form-control span7" placeholder="" name="praise3" value="<?php  echo $info['praise3'];?>">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">70~90分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope41" class="form-control span7" placeholder="" name="score_scope41" value="<?php  echo $info['score_scope41'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope42" class="form-control span7" placeholder="" name="score_scope42" value="<?php  echo $info['score_scope42'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise4" class="form-control span7" placeholder="" name="praise4" value="<?php  echo $info['praise4'];?>">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">100分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope51" class="form-control span7" placeholder="" name="score_scope51" value="<?php  echo $info['score_scope51'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope52" class="form-control span7" placeholder="" name="score_scope52" value="<?php  echo $info['score_scope52'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise5" class="form-control span7" placeholder="" name="praise5" value="<?php  echo $info['praise5'];?>">
		        </div>
		    </div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">底部广告</label>
				<div class="col-sm-9">
					<?php  echo tpl_form_field_image('adv',$info['adv']);?>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖品设置</label>
				<div class="col-sm-9">
					<textarea id="remark1" name="prize" class="form-control">
					<?php  echo $info['prize'];?> 
					</textarea> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">规则设置</label>
				<div class="col-sm-9">
					<textarea id="remark2" name="rule" class="form-control">
					<?php  echo $info['rule'];?> 
					</textarea> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-4">
				<input type="hidden" name="token" value="<?php  echo $_W['token'];?>" />
				<input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
					
				</div>
			</div>
			
			</div>
		</div>
	</form>
	<script>
require(['jquery','util'], function($, util){
	$(function(){
 		var editor = util.editor($('#remark1')[0]);
 		var editor = util.editor($('#remark2')[0]);
	});
});
</script>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
